package com.flyduck.system.vo.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.List;

/**
 * @program: flyduck-platform
 * @description: 系统:角色新增请求VO
 * @author: flyduck
 * @create: 2021-02-05 21:33
 **/
@Data
@ApiModel(value = "系统:角色新增请求VO")
public class SysRoleAddReqVO implements Serializable {

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称",required = true)
    private String roleName;

    @NotBlank(message = "排序不能为空")
    @ApiModelProperty(value = "排序",required = true)
    private String sort;

    @NotBlank(message = "菜单类型不能为空")
    @Pattern(regexp = "[/^1$|^2$|^3&/]*", message = "性别为：1本部门数据权限 2本部门及以下数据权限 3全部数据权限")
    @ApiModelProperty(value = "数据范围（1：本部门数据权限 2：本部门及以下数据权限 3: 全部数据权限）",required = true)
    private String dataScope;

    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "[/^1$|^2&/]*", message = "状态为：1启用 2禁用")
    @ApiModelProperty(value = "状态",required = true)
    private String status;

    @NotEmpty(message = "菜单id集合不能为空")
    @ApiModelProperty(value = "菜单id集合",required = true)
    private List<String> menuIds;

}
